package springboot.demo.modules.rabbitmq;

import springboot.demo.common.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("mq")
public class MQController {


    @Autowired
    private HelloSender sender;

    @RequestMapping("test")
    public R test(){
        sender.send2("hello");
        return R.ok();
    }

}
